import request from '@/utils/request'
const apiUrl = '/api/form-control'
export function batchSaveFormControl(data) {
    return request({
        url: `${apiUrl}/batch-save`,
        method: 'post',
        data
    })
}

export function getFormControlById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function getFormControlList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}

export function deleteFormControl(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 